package com.camp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.camp.mapper.FacilitytypeMapper;
import com.camp.domain.Facilitytype;
import com.camp.service.IFacilitytypeService;

/**
 * 设施类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-08
 */
@Service
public class FacilitytypeServiceImpl implements IFacilitytypeService 
{
    @Autowired
    private FacilitytypeMapper facilitytypeMapper;

    /**
     * 查询设施类型
     * 
     * @param  ftId 设施类型主键
     * @return 设施类型
     */
    @Override
    public Facilitytype selectFacilitytypeByftId(String  ftId)
    {
        return facilitytypeMapper.selectFacilitytypeByftId( ftId);
    }

    /**
     * 查询设施类型列表
     * 
     * @param facilitytype 设施类型
     * @return 设施类型
     */
    @Override
    public List<Facilitytype> selectFacilitytypeList(Facilitytype facilitytype)
    {
        return facilitytypeMapper.selectFacilitytypeList(facilitytype);
    }

    /**
     * 新增设施类型
     * 
     * @param facilitytype 设施类型
     * @return 结果
     */
    @Override
    public int insertFacilitytype(Facilitytype facilitytype)
    {
        return facilitytypeMapper.insertFacilitytype(facilitytype);
    }

    /**
     * 修改设施类型
     * 
     * @param facilitytype 设施类型
     * @return 结果
     */
    @Override
    public int updateFacilitytype(Facilitytype facilitytype)
    {
        return facilitytypeMapper.updateFacilitytype(facilitytype);
    }

    /**
     * 批量删除设施类型
     * 
     * @param  ftIds 需要删除的设施类型主键
     * @return 结果
     */
    @Override
    public int deleteFacilitytypeByftIds(String[]  ftIds)
    {
        return facilitytypeMapper.deleteFacilitytypeByftIds( ftIds);
    }

    /**
     * 删除设施类型信息
     * 
     * @param  ftId 设施类型主键
     * @return 结果
     */
    @Override
    public int deleteFacilitytypeByftId(String  ftId)
    {
        return facilitytypeMapper.deleteFacilitytypeByftId( ftId);
    }
}
